import { LOGIN_API, CODE_API } from '../contants/index'
import request from '@/utils/request'


export const getCode = phone => request({
    url: CODE_API+phone,
})

export const login = user => request({
    url: LOGIN_API,
    method: 'POST',
    data: user
})

